import request from '/@/utils/request'

//上传方法
export function api_upload_file(params: any) {
  let tablename = 'files_file'
  const res = request({
    url: `/${tablename}/upload_file`,
    method: 'post',
    params,
  })
  console.log('api_upload_file', res)
  return res
}

export function api_upload_base64(params: any) {
  let tablename = 'files_file'
  const res = request({
    url: `/${tablename}/upload_base64`,
    method: 'post',
    params,
  })
  return res
}

//获取图片列表
export function api_getFileList(params: any) {
  let tablename = 'files_file'
  const res = request({
    url: `/${tablename}/getFileList`,
    method: 'post',
    params,
  })
  console.log('api_getFileList', res)
  return res
}
